#ifndef MAINWIN_H
#define MAINWIN_H

#include "scHeader.h"
#include <QMainWindow>
#include <QLabel>
#include <QSplitter>
#include <QSignalMapper>

namespace sybilpm
{

class WinMain : public QMainWindow
{
    Q_OBJECT
public:
    WinMain(QWidget *parent = 0);
    ~WinMain();
	QSize sizeHint() const {return QSize(700, 400);}

public slots:
	void serverDataSl();

private:
	QAction *exitAct, *viewCloseAct, *timeSliceAct, *garbageCollectAct, *serverDataAct,
		*timeInfoAct, *debugAct, *debugDataAct, *aboutAct, *aboutQtAct;
	QSignalMapper * viewMapper;
	QSplitter * center;
	bool viewClosure;
	QLabel permStat;

private slots:
	void checkViewClosureSl(WidSybilView * view);
	void statusTextSl(QString text);
	void statusTextPermSl();
	void addViewSl(int viewType);
	void viewCloseSl();
	void timeSliceSl();
	void timeInfoSl();
	void debugDlgSl();
	void debugDataActSl();
	void aboutDlgSl();
};

} // namespace sybilpm

#endif
